import '@babel/polyfill'
import Vue from 'vue'
import './plugins/axios'
import './plugins/bootstrap-vue'
import App from './App.vue'
import router from './router'
import store from './store'
import common from './util/common'
import './util/rem'
import vueToTop from 'vue-totop'
import VueLazyload from 'vue-lazyload'

Vue.prototype.common = common
Vue.config.productionTip = false
Vue.use(vueToTop)

Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('./assets/loading-spin.svg'),
  loading: require('./assets/loading-spin.svg'),
  attempt: 1
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
